package com.dms.service;

import com.dms.pojo.Building;
import com.dms.pojo.Dormitory;
import com.dms.pojo.Student;

import java.util.List;
import java.util.Map;

/**
 * @className: DormitoryManageService
 * @package: com.dms.service
 * @description 宿舍管理模块业务逻辑接口
 * @author: sk
 */
public interface DormitoryManageService {

    //判断该楼栋该宿舍号是否存在
    boolean checkRoomByBuildingNumber(int buildingId, String dormitoryRoom);

    //添加寝室
    int addDormitory(Dormitory dormitory);

    // 模糊分页查询 获取楼栋寝室列表
    List<Dormitory> getDormitoryListLimit(String query, int select, int pageNum, int pageSize);

    // 获取寝室所住学生列表信息
    List<Student> getDormitoryStudentList(int buildingId, String dormitoryRoom);

    //获取 楼栋寝室total
    int getDormitoryTotal(String query, int select);

    //获取寝室信息
    Dormitory getDormitoryInfo(int buildingId, String dormitoryRoom);

    //修改寝室信息
    int editDormitory(Dormitory dormitory);

    //1、更新原寝室人员的dormitoryId为null
    int batchUpdateStudentDormitoryId(int dormitoryId);

    //2、并删除寝室信息
    int deleteDormitory(int dormitoryId);



}
